#pragma once

#include <string>

#include <occi.h>
using namespace oracle::occi;

#include "OcciConnectorExport.h"

class OCCICONNECTOR_API COcciConnector
{
public:
	COcciConnector(void);
	~COcciConnector(void);
public:
	const std::string GetErrorMessage();
	bool Connect(std::string szConnectionString, std::string szUserName, std::string szPassWord);
	bool InsertPoint(std::string rid, double x, double y, double z);
private:
	std::string m_szErrorMessage;

	Environment* m_lpOcciEnviroment;
	Connection *m_lpOcciConnection;
	Statement *m_lpOcciStatement;
	ResultSet *m_lpOcciResultSet;
};
